import request from '@/utils/request'

interface IResponseType<P> {
  code?: number
  status: number
  msg: string
  data: P
}

interface ILogin {
  token: string
  expires: number
}

export const login = () => {
  return request<IResponseType<ILogin>>({
    url: '/user/login'
  })
}
